import *as API from './index';

export const orders=(params,headers)=>{
	return API.GET('/api/v1/admin/orders',params,headers).then(res=>res)
}

export const updateOrder=(url,params,token)=>{
	return API.PUT(`/api/v1/admin/orders/${url}`,params,token).then(res=>res)
}

export const delOrder=(url,params,token)=>{
	return API.DELETE(`/api/v1/admin/orders/${url}`,params,token).then(res=>res)
}

export const getOrder=(url,params,token)=>{
	return API.GET(`/api/v1/admin/orders/${url}`,params,token).then(res=>res)
}